﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeFile="news.aspx.cs" Inherits="news" %>

<%@ Register Assembly="aspnetpager" Namespace="Wuqi.Webdiyer" TagPrefix="Webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="css/NewCss.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<div id="All-Table">
  <div id="Title-Line">
    <h2>最新消息</h2>
  </div>
  <asp:Repeater ID="Repeater1" runat="server" onitemdatabound="Repeater1_ItemDataBound">
              <ItemTemplate>
          <table border="0" cellpadding="0" cellspacing="0" class="News-Table">
    <tr>
      <td width="16%"><a href="news-in.aspx?id=<%# Eval("PostId") %>"><img src="upload/<%# Eval("PicFileName")%>" width="126" height="97" class="News-PP" /></a></td>
      <td width="84%" valign="top"><div class="News-Day"><asp:Literal ID="ltlShowDate" runat="server" Text='<%# Eval("ShowDate","{0:yyyy.MM.dd}") %>'></asp:Literal></div>
        <div class="News-Ttitle"><a href="news-in.aspx?id=<%# Eval("PostId") %>" class="Btn-Black"><%# Eval("Title")%></a></div>
        <div class="News-ob"><asp:Literal ID="ltlContent" runat="server"></asp:Literal></div></td>
    </tr>
  </table>
              </ItemTemplate>
          </asp:Repeater>  
          <div id="PageNumber">
          <Webdiyer:AspNetPager ID="AspNetPager1" runat="server" Height="28px"
                    OnPageChanged="AspNetPager1_PageChanged" PageIndexBoxType="TextBox" PageSize="10"
                    ShowPageIndexBox="Never" ShowFirstLast="true" 
                    FirstPageText="<p class='PageNumber-01'>第一頁</p>" LastPageText="<p class='PageNumber-01'>最末頁</p>"
                    PrevPageText="<p class='PageNumber-01'>上一頁</p>" NextPageText="<p class='PageNumber-01'>下一頁</p>" NumericButtonTextFormatString="<p class='PageNumber-01'>{0}</p>" />
          </div>
</div>
</asp:Content>

